﻿// DigitalDesign
// Project: InformationBoard
// Developer: Montak Oleg
// Created: 20.11.2011
// Last change: 20.11.2011
// Description: implementation for CrossDomainService - allows access silverlight-application


using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.IO;
using System.Xml;
using System.ServiceModel.Channels;

namespace Server
{
    public class CrossDomainService : ICrossDomainService
    {
        public System.ServiceModel.Channels.Message ProvidePolicyFile()
        {
            StreamReader streamReader = new StreamReader(@"ClientAccessPolicy.xml");
            XmlReader xmlReader = XmlReader.Create(streamReader);
            Message result = Message.CreateMessage(MessageVersion.None, "", xmlReader);

            return result;
        }
    }
}
